<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>

    <script>
        $(function () {

           $.get("/sessions/code",{userId:40},function (data) {
               console.log(data);
               $("#code").renderValues({code:data.code});
           })
        })

    </script>

</head>
<body>

<h3>验证码页面</h3>

<div id="code">
    验证码为:
     <span render-html="code"></span>

</div>
</body>
</html>